#include "Platform.h"
#include "Files.h"
#include "shlwapi.h"

#pragma comment(lib,"shlwapi.lib")

//fuck you 

namespace FileOps
{

	DWORD GetFileSize(const TCHAR* filePath)
	{
		WIN32_FIND_DATA fileInfo; 
		HANDLE hFind; 
		DWORD fileSize; 
		hFind = FindFirstFile(filePath ,&fileInfo); 
		if(hFind != INVALID_HANDLE_VALUE) 
			fileSize = fileInfo.nFileSizeLow; 
		FindClose(hFind);
		return fileSize;
	}

	BOOL FileExist(const TCHAR* sFilePath)
	{
		return  PathFileExists(sFilePath);
	}

	BOOL DirExist(const TCHAR* sFilePath)
	{
		return  PathFileExists(sFilePath);
	}

	BOOL DeleteFile(const TCHAR* szFilePath)
	{
		return DeleteFile(szFilePath);
	}

	UINT ReadFileData(const TCHAR* szFilePath, void* pData, UINT nDataSize, ULONGLONG nOffset)
	{
		return 0;
	}
}
